﻿@using DeviceMaintainGIS.Model.DevProRelation;
@model DeviceMaintainGIS.Model.DevProRelation.DevProRelationInfoModel
@{
    Layout = null;
    ViewBag.Title = "DevProRelationEdit";
    List<CodeType> CodeTypeList = ViewBag.CodeTypeList;
}
<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>设备关系修改</title>

</head>
<body>
    <div style="padding: 15px; overflow: hidden">
        <form id="DevProRelationEditForm" method="post" action="">
            <table class="tableForm" width="100%">

                <tr>
                    <th>
                        请选择设备：
                    </th>
                    <td>
                        <input type="hidden" name="txtID" id="txtID" value="@Model.DPRelationId">
                        <input type="hidden" name="txtDeviceId" id="txtDeviceId" value="@Model.DeviceId">
                        <input class="easyui-combobox" name="selDev" id="selDev" data-options="valueField:'id',textField:'text',panelHeight:'auto',panelMaxHeight:200,panelMinHeight:100,onLoadSuccess:function(data){ $('#selDev').combobox('setValue','@Model.DeviceName');}" style="width: 160px;height: 29px" disabled="disabled" />
                    </td>
                </tr>
                <tr>
                    <th>
                        出库途径类型：
                    </th>
                    <td>
                        <select id="selCodeType">
                            <option value="">请选择</option>
                            @foreach (CodeType ltm in CodeTypeList)
                            {

                                if (Model.CodeId == ltm.CodeId)
                                {
                                    <option value="@ltm.CodeId" selected>@ltm.CodeTypeName</option>
                                }
                                else
                                {
                                    <option value="@ltm.CodeId">@ltm.CodeTypeName</option>
                                }
                            }

                        </select>
                    </td>
                </tr>
                <tr>
                    <th>
                        出库途径编号：
                    </th>
                    <td>
                        <input type="text" name="txtCode" id="txtCode" class="easyui-validatebox textbox" data-options="required:true" style="width:170px;height:22px;" value="@Model.Code"/>
                    </td>
                </tr>


                <tr>
                    <th>
                        工程重命名：
                    </th>
                    <td>
                        <input type="text" name="txtReName" id="txtReName" class="easyui-validatebox textbox" data-options="required:true" style="width:170px;height:22px;" value="@Model.ReName"/>


                    </td>
                </tr>

                <tr>
                    <th>
                        基站信息：
                    </th>
                    <td>
                        <input class="easyui-combobox" name="selLoca" id="selLoca" data-options="valueField:'id',textField:'text',panelHeight:'auto',panelMaxHeight:200,panelMinHeight:100,onLoadSuccess:function(data){ $('#selLoca').combobox('setValue','@Model.LocaId');}" style="width: 160px;height: 29px" />
                    </td>
                </tr>
                <tr>
                    <th>
                        质保期：
                    </th>
                    <td>
                        <input type="text" name="txtWarrantyTime" id="txtWarrantyTime" class="easyui-datebox"
                               editable="false" style="width:150px;height:22px;" value="@Model.WarrantyTime.ToString("yyyy-MM-dd")"/>
                    </td>
                </tr>
                <tr>
                    <th>
                        设备状态：
                    </th>
                    <td>
                        <select id="selState">
                            <option value="1" selected>已出库</option>
                            <option value="2">报废</option>
                            <option value="0">未出库</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <th>
                        出库或报废时间：
                    </th>
                    <td>
                        <input type="text" name="txtDateTime" id="txtDateTime" class="easyui-datebox"
                               editable="false" style="width:150px;height:22px;" value="@(Model.ChangeDateTime.Value.ToString("yyyy-MM-dd"))"/>
                    </td>
                </tr>
                <tr>
                    <th>
                        备注：
                    </th>
                    <td>

                        <textarea rows="3" cols="50" name="txtRemark" id="txtRemark" class="easyui-validatebox" value="@Model.Remark">@Model.Remark</textarea>
                    </td>
                </tr>
            </table>
        </form>
    </div>

</body>
</html>
